import request from "@/utils/request";

export function listEpisode(data) {
  return request({
    url: '/episode/list',
    method: 'post',
    data
  })
}

export function updateEpisode(data) {
  return request({
    url: '/episode/update',
    method: 'post',
    data
  })
}

export function saveEpisode(data) {
  return request({
    url: '/episode/save',
    method: 'post',
    data
  })
}


export function deleteEpisode(id) {
  return request({
    url: `/episode/del/${id}`,
    method: 'get'
  })
}
